<?php
/*
|--------------------------------------------------------------------------
| Application Routes
|--------------------------------------------------------------------------
|
*/


$app->get('/', function(){
	echo "welcome to ptime3campus api.";
	
	// echo date("Y-m-d H:i:s");
});

$app->get 	('/campus', 			'CampusController@index');
$app->get 	('/campus/{id}/system', 'CampusSystemController@index');

$app->get 	('/user/{id}/system', 'UserSystemController@show');

$app->get 	('/user/{uid}/campus/{cid}/system/{sid}/pre',        'SystemController@pre');
$app->post 	('/user/{uid}/campus/{cid}/system/{sid}/login',      'SystemController@login');

$app->post 	('/user/{uid}/campus/{cid}/system/{sid}/{api}',      'SystemController@api');

$app->post 	('/user/{uid}/system_cat/{scname}/{api}',            'SystemController@apiWithSystemCat');

$app->post 	('/user/{uid}/campus/{cid}/system/{sid}/intro/store','SystemController@introStore');